25 #if FEATURE_CONTROLLER == UICONFIG_CONTROLLER 29 #if FEATURE_CONTROLLER == NO_CONTROLLER 31 #define UI_DISPLAY_TYPE NO_DISPLAY 38 #endif // NO_CONTROLLER 40 #if (FEATURE_CONTROLLER == CONTROLLER_SMARTRAMPS) || (FEATURE_CONTROLLER == CONTROLLER_GADGETS3D_SHIELD) || (FEATURE_CONTROLLER == CONTROLLER_REPRAPDISCOUNT_GLCD) || (FEATURE_CONTROLLER == CONTROLLER_BAM_DICE_DUE) || (FEATURE_CONTROLLER == CONTROLLER_REPRAPWORLD_GLCD) 42 #define UI_HAS_BACK_KEY 0 43 #if FEATURE_CONTROLLER == CONTROLLER_REPRAPDISCOUNT_GLCD || (FEATURE_CONTROLLER == CONTROLLER_REPRAPWORLD_GLCD) 44 #define UI_DISPLAY_TYPE DISPLAY_U8G 46 #define UI_LCD_WIDTH 128 47 #define UI_LCD_HEIGHT 64 49 #define UI_FONT_6X10 //default font 51 #define UI_FONT_WIDTH 6 52 #define UI_FONT_HEIGHT 10 53 #define UI_FONT_SMALL_HEIGHT 7 54 #define UI_FONT_DEFAULT repetier_6x10 55 #define UI_FONT_SMALL repetier_5x7 56 #define UI_FONT_SMALL_WIDTH 5 //smaller font for status display 60 #define UI_COLS (UI_LCD_WIDTH/UI_FONT_SMALL_WIDTH) 61 #define UI_ROWS (UI_LCD_HEIGHT/UI_FONT_HEIGHT) 62 #define UI_DISPLAY_CHARSET 3 63 #else // 40x4 char display 64 #define UI_DISPLAY_TYPE DISPLAY_4BIT 65 #define UI_DISPLAY_CHARSET 1 72 #if FEATURE_CONTROLLER == CONTROLLER_GADGETS3D_SHIELD // Gadgets3d shield 76 #define UI_DISPLAY_RS_PIN 16 77 #define UI_DISPLAY_RW_PIN -1 78 #define UI_DISPLAY_ENABLE_PIN 17 79 #define UI_DISPLAY_D0_PIN 23 80 #define UI_DISPLAY_D1_PIN 25 81 #define UI_DISPLAY_D2_PIN 27 82 #define UI_DISPLAY_D3_PIN 29 83 #define UI_DISPLAY_D4_PIN 23 84 #define UI_DISPLAY_D5_PIN 25 85 #define UI_DISPLAY_D6_PIN 27 86 #define UI_DISPLAY_D7_PIN 29 87 #define UI_ENCODER_A 35 88 #define UI_ENCODER_B 37 89 #define UI_ENCODER_CLICK 31 90 #define UI_RESET_PIN 41 91 #else // Smartcontroller 93 #if MOTHERBOARD == 701 // Megatronics v2.0 95 #define UI_DISPLAY_RS_PIN 14 96 #define UI_DISPLAY_RW_PIN -1 97 #define UI_DISPLAY_ENABLE_PIN 15 98 #define UI_DISPLAY_D0_PIN -1 99 #define UI_DISPLAY_D1_PIN -1 100 #define UI_DISPLAY_D2_PIN -1 101 #define UI_DISPLAY_D3_PIN -1 102 #define UI_DISPLAY_D4_PIN 30 103 #define UI_DISPLAY_D5_PIN 31 104 #define UI_DISPLAY_D6_PIN 32 105 #define UI_DISPLAY_D7_PIN 33 106 #define UI_ENCODER_A 61 107 #define UI_ENCODER_B 59 108 #define UI_ENCODER_CLICK 43 109 #define UI_RESET_PIN 66 // was 41 //AE3 was here and added this line 1/25/2014 (Note pin 41 is Y- endstop!) 110 #define UI_INVERT_MENU_DIRECTION 1 112 #elif MOTHERBOARD == 703 // Megatronics v3.0 114 #define UI_DISPLAY_RS_PIN 32 115 #define UI_DISPLAY_RW_PIN -1 116 #define UI_DISPLAY_ENABLE_PIN 31 117 #define UI_DISPLAY_D0_PIN -1 118 #define UI_DISPLAY_D1_PIN -1 119 #define UI_DISPLAY_D2_PIN -1 120 #define UI_DISPLAY_D3_PIN -1 121 #define UI_DISPLAY_D4_PIN 14 122 #define UI_DISPLAY_D5_PIN 30 123 #define UI_DISPLAY_D6_PIN 39 124 #define UI_DISPLAY_D7_PIN 15 125 #define UI_ENCODER_A 45 126 #define UI_ENCODER_B 44 127 #define UI_ENCODER_CLICK 33 128 #define UI_INVERT_MENU_DIRECTION 1 129 #define UI_RESET_PIN -1 131 #elif MOTHERBOARD == 80 // Rumba has different pins as RAMPS! 134 #define BEEPER_PIN 44 135 #define UI_DISPLAY_RS_PIN 19 136 #define UI_DISPLAY_RW_PIN -1 137 #define UI_DISPLAY_ENABLE_PIN 42 138 #define UI_DISPLAY_D0_PIN -1 139 #define UI_DISPLAY_D1_PIN -1 140 #define UI_DISPLAY_D2_PIN -1 141 #define UI_DISPLAY_D3_PIN -1 142 #define UI_DISPLAY_D4_PIN 18 143 #define UI_DISPLAY_D5_PIN 38 144 #define UI_DISPLAY_D6_PIN 41 145 #define UI_DISPLAY_D7_PIN 40 146 #define UI_ENCODER_A 12 147 #define UI_ENCODER_B 11 148 #define UI_ENCODER_CLICK 43 149 #define UI_RESET_PIN 46 151 #elif MOTHERBOARD == 37 // UltiMaker 1.5.7 153 #define BEEPER_PIN 18 154 #define UI_DISPLAY_RS_PIN 20 155 #define UI_DISPLAY_RW_PIN -1 156 #define UI_DISPLAY_ENABLE_PIN 17 157 #define UI_DISPLAY_D0_PIN -1 158 #define UI_DISPLAY_D1_PIN -1 159 #define UI_DISPLAY_D2_PIN -1 160 #define UI_DISPLAY_D3_PIN -1 161 #define UI_DISPLAY_D4_PIN 16 162 #define UI_DISPLAY_D5_PIN 21 163 #define UI_DISPLAY_D6_PIN 5 164 #define UI_DISPLAY_D7_PIN 6 165 #define UI_ENCODER_A 42 166 #define UI_ENCODER_B 40 167 #define UI_ENCODER_CLICK 19 168 #define UI_RESET_PIN -1 170 #elif MOTHERBOARD == 301 // Rambo has own pins layout 173 #define BEEPER_PIN 79 174 #define UI_DISPLAY_RS_PIN 70 175 #define UI_DISPLAY_RW_PIN -1 176 #define UI_DISPLAY_ENABLE_PIN 71 177 #define UI_DISPLAY_D0_PIN -1 178 #define UI_DISPLAY_D1_PIN -1 179 #define UI_DISPLAY_D2_PIN -1 180 #define UI_DISPLAY_D3_PIN -1 181 #define UI_DISPLAY_D4_PIN 72 182 #define UI_DISPLAY_D5_PIN 73 183 #define UI_DISPLAY_D6_PIN 74 184 #define UI_DISPLAY_D7_PIN 75 185 #define UI_ENCODER_A 76 186 #define UI_ENCODER_B 77 187 #define UI_ENCODER_CLICK 78 188 #define UI_RESET_PIN 80 190 #define SDCARDDETECT 81 191 #undef SDCARDDETECTINVERTED 192 #define SDCARDDETECTINVERTED 0 196 #elif MOTHERBOARD == 501 // Alligator has own pins layout 199 #define BEEPER_PIN 64 200 #define UI_DISPLAY_RS_PIN 18 201 #define UI_DISPLAY_ENABLE_PIN 15 202 #define UI_DISPLAY_D4_PIN 19 203 #define UI_ENCODER_A 14 204 #define UI_ENCODER_B 16 205 #define UI_ENCODER_CLICK 17 206 #define UI_RESET_PIN -1 208 #define SDCARDDETECT 87 209 #undef SDCARDDETECTINVERTED 210 #define SDCARDDETECTINVERTED 0 211 #ifndef UI_VOLTAGE_LEVEL 212 #define UI_VOLTAGE_LEVEL 1 // Set 1=5 o 0=3.3 V 215 #elif ((MOTHERBOARD == 410) || (MOTHERBOARD == 411)) // DUE3DOM / DUE3DOM MINI has own pins layout 218 #define BEEPER_PIN 41 219 #define UI_DISPLAY_RS_PIN 42 220 #define UI_DISPLAY_ENABLE_PIN 43 221 #define UI_DISPLAY_D4_PIN 44 222 #define UI_DISPLAY_D5_PIN 45 223 #define UI_DISPLAY_D6_PIN 46 224 #define UI_DISPLAY_D7_PIN 47 225 #define UI_ENCODER_A 52 226 #define UI_ENCODER_B 50 227 #define UI_ENCODER_CLICK 48 228 #define UI_RESET_PIN -1 230 #define SDCARDDETECT 14 231 #undef SDCARDDETECTINVERTED 232 #define SDCARDDETECTINVERTED 0 233 #ifndef UI_VOLTAGE_LEVEL 234 #define UI_VOLTAGE_LEVEL 1 // Set 1=5 o 0=3.3 V 237 #elif MOTHERBOARD == 405 // Felix Pro 1 240 #define BEEPER_PIN -1 241 #define UI_DISPLAY_RS_PIN 42 242 #define UI_DISPLAY_ENABLE_PIN 44 243 #define UI_DISPLAY_D4_PIN 43 244 #define UI_ENCODER_A 52 245 #define UI_ENCODER_B 50 246 #define UI_ENCODER_CLICK 48 247 #define UI_RESET_PIN -1 249 #elif MOTHERBOARD == 101 // Felix Pro 1 252 #define BEEPER_PIN -1 253 #define UI_DISPLAY_RS_PIN 16 254 #define UI_DISPLAY_ENABLE_PIN 17 255 #define UI_DISPLAY_D4_PIN 23 256 #define UI_ENCODER_A 35 257 #define UI_ENCODER_B 37 258 #define UI_ENCODER_CLICK 31 259 #define UI_RESET_PIN -1 261 #elif ( MOTHERBOARD == 183 ) || ( MOTHERBOARD == 184 ) // MJRice Pica 264 #define BEEPER_PIN 19 265 #define UI_DISPLAY_RS_PIN 33 266 #define UI_DISPLAY_RW_PIN -1 267 #define UI_DISPLAY_ENABLE_PIN 30 268 #define UI_DISPLAY_D0_PIN -1 269 #define UI_DISPLAY_D1_PIN -1 270 #define UI_DISPLAY_D2_PIN -1 271 #define UI_DISPLAY_D3_PIN -1 272 #define UI_DISPLAY_D4_PIN 35 273 #define UI_DISPLAY_D5_PIN 32 274 #define UI_DISPLAY_D6_PIN 37 275 #define UI_DISPLAY_D7_PIN 36 276 #define UI_ENCODER_A 47 277 #define UI_ENCODER_B 48 278 #define UI_ENCODER_CLICK 31 279 #define UI_RESET_PIN -1 280 #define SDCARDDETECT 49 282 #elif ((MOTHERBOARD == 409)) // Ultratronics 285 #define BEEPER_PIN 27 286 #define UI_DISPLAY_RS_PIN 62 287 #define UI_DISPLAY_ENABLE_PIN 75 288 #define UI_DISPLAY_D4_PIN 76 289 #define UI_DISPLAY_D5_PIN -1 290 #define UI_DISPLAY_D6_PIN -1 291 #define UI_DISPLAY_D7_PIN -1 292 #define UI_ENCODER_A 20 293 #define UI_ENCODER_B 21 294 #define UI_ENCODER_CLICK 64 295 #define UI_RESET_PIN -1 297 #define SDCARDDETECT 60 298 #undef SDCARDDETECTINVERTED 299 #define SDCARDDETECTINVERTED 0 303 #define BEEPER_PIN 37 304 #define UI_DISPLAY_RS_PIN 16 305 #define UI_DISPLAY_RW_PIN -1 306 #define UI_DISPLAY_ENABLE_PIN 17 307 #define UI_DISPLAY_D0_PIN 23 308 #define UI_DISPLAY_D1_PIN 25 309 #define UI_DISPLAY_D2_PIN 27 310 #define UI_DISPLAY_D3_PIN 29 311 #define UI_DISPLAY_D4_PIN 23 312 #define UI_DISPLAY_D5_PIN 25 313 #define UI_DISPLAY_D6_PIN 27 314 #define UI_DISPLAY_D7_PIN 29 315 #define UI_ENCODER_A 33 316 #define UI_ENCODER_B 31 317 #define UI_ENCODER_CLICK 35 318 #define UI_RESET_PIN 41 320 #endif // smartcontroller 321 #define UI_DELAYPERCHAR 50 322 #if FEATURE_CONTROLLER == CONTROLLER_BAM_DICE_DUE 323 #define UI_ENCODER_SPEED 2 325 #ifndef UI_INVERT_MENU_DIRECTION 326 #define UI_INVERT_MENU_DIRECTION 0 333 #if UI_RESET_PIN > -1 338 #if FEATURE_CONTROLLER == CONTROLLER_BAM_DICE_DUE 344 #if UI_RESET_PIN > -1 351 #endif // Controller 2 and 10 353 #if FEATURE_CONTROLLER == CONTROLLER_ADAFRUIT 354 #define UI_HAS_KEYS 1 355 #define UI_HAS_BACK_KEY 1 356 #define UI_DISPLAY_TYPE DISPLAY_I2C 357 #define UI_DISPLAY_CHARSET 1 360 #define UI_DISPLAY_I2C_CHIPTYPE 1 361 #define UI_DISPLAY_I2C_ADDRESS 0x40 362 #define UI_DISPLAY_I2C_OUTPUT_PINS 65504 363 #define UI_DISPLAY_I2C_OUTPUT_START_MASK 0 364 #define UI_DISPLAY_I2C_PULLUP 31 365 #define UI_I2C_CLOCKSPEED 400000L 366 #define UI_DISPLAY_RS_PIN _BV(15) 367 #define UI_DISPLAY_RW_PIN _BV(14) 368 #define UI_DISPLAY_ENABLE_PIN _BV(13) 369 #define UI_DISPLAY_D0_PIN _BV(12) 370 #define UI_DISPLAY_D1_PIN _BV(11) 371 #define UI_DISPLAY_D2_PIN _BV(10) 372 #define UI_DISPLAY_D3_PIN _BV(9) 373 #define UI_DISPLAY_D4_PIN _BV(12) 374 #define UI_DISPLAY_D5_PIN _BV(11) 375 #define UI_DISPLAY_D6_PIN _BV(10) 376 #define UI_DISPLAY_D7_PIN _BV(9) 377 #define UI_INVERT_MENU_DIRECTION 1 378 #define UI_HAS_I2C_KEYS 379 #define UI_HAS_I2C_ENCODER 0 380 #define UI_I2C_KEY_ADDRESS 0x40 408 #endif // Controller 3 410 #if FEATURE_CONTROLLER == CONTROLLER_FOLTYN 411 #define UI_HAS_KEYS 1 412 #define UI_HAS_BACK_KEY 1 413 #define UI_DISPLAY_TYPE DISPLAY_4BIT 414 #define UI_DISPLAY_CHARSET 2 418 #define UI_DISPLAY_RS_PIN 63 419 #define UI_DISPLAY_RW_PIN -1 421 #define UI_DISPLAY_ENABLE_PIN 65 423 #define UI_DISPLAY_D0_PIN 59 425 #define UI_DISPLAY_D1_PIN 64 427 #define UI_DISPLAY_D2_PIN 44 429 #define UI_DISPLAY_D3_PIN 66 431 #define UI_DISPLAY_D4_PIN 59 433 #define UI_DISPLAY_D5_PIN 64 435 #define UI_DISPLAY_D6_PIN 44 437 #define UI_DISPLAY_D7_PIN 66 438 #define UI_DELAYPERCHAR 50 439 #define UI_INVERT_MENU_DIRECTION 0 458 #endif // Controller 4 461 #if FEATURE_CONTROLLER == CONTROLLER_VIKI // Viki Lcd 465 #define UI_ENCODER_A 7 466 #define UI_ENCODER_B 22 467 #define UI_RESET_PIN 32 469 #define SDCARDDETECT 49 474 #define SDCARDDETECTINVERTED 0 476 #define UI_HAS_KEYS 1 477 #define UI_HAS_BACK_KEY 1 478 #define UI_DISPLAY_TYPE DISPLAY_I2C 479 #define UI_DISPLAY_CHARSET 1 482 #define UI_DISPLAY_I2C_CHIPTYPE 1 483 #define UI_DISPLAY_I2C_ADDRESS 0x40 484 #define UI_DISPLAY_I2C_OUTPUT_PINS 0xFFE0 485 #define UI_DISPLAY_I2C_OUTPUT_START_MASK 0x01C0 // bits that are high always, for now the 3 viki leds 486 #define UI_DISPLAY_I2C_PULLUP 0x001F 487 #define UI_I2C_CLOCKSPEED 100000L // Note with very long cables make this much smaller, for 2ft cables I found 80000 worked ok 489 #define UI_DISPLAY_RS_PIN _BV(15) 490 #define UI_DISPLAY_RW_PIN _BV(14) 491 #define UI_DISPLAY_ENABLE_PIN _BV(13) 492 #define UI_DISPLAY_D0_PIN _BV(12) 493 #define UI_DISPLAY_D1_PIN _BV(11) 494 #define UI_DISPLAY_D2_PIN _BV(10) 495 #define UI_DISPLAY_D3_PIN _BV(9) 496 #define UI_DISPLAY_D4_PIN _BV(12) 497 #define UI_DISPLAY_D5_PIN _BV(11) 498 #define UI_DISPLAY_D6_PIN _BV(10) 499 #define UI_DISPLAY_D7_PIN _BV(9) 503 #define BEEPER_PIN _BV(5) 504 #define BEEPER_TYPE 2 505 #define BEEPER_ADDRESS UI_DISPLAY_I2C_ADDRESS // I2C address of the chip with the beeper pin 506 #define UI_I2C_HEATBED_LED _BV(8) 507 #define UI_I2C_HOTEND_LED _BV(7) 508 #define UI_I2C_FAN_LED _BV(6) 510 #define UI_INVERT_MENU_DIRECTION 0 511 #define UI_HAS_I2C_KEYS 512 #define UI_HAS_I2C_ENCODER 0 513 #define UI_I2C_KEY_ADDRESS 0x40 540 #endif // Controller 5 542 #if FEATURE_CONTROLLER == CONTROLLER_MEGATRONIC 543 #define UI_HAS_KEYS 1 544 #define UI_HAS_BACK_KEY 0 545 #define UI_DISPLAY_TYPE DISPLAY_4BIT 546 #define UI_DISPLAY_CHARSET 0 550 #if MOTHERBOARD==701 // Megatronics v2.0 551 #define UI_DISPLAY_RS_PIN 14 552 #define UI_DISPLAY_RW_PIN -1 553 #define UI_DISPLAY_ENABLE_PIN 15 554 #define UI_DISPLAY_D4_PIN 30 555 #define UI_DISPLAY_D5_PIN 31 556 #define UI_DISPLAY_D6_PIN 32 557 #define UI_DISPLAY_D7_PIN 33 558 #define UI_ENCODER_A 61 559 #define UI_ENCODER_B 59 560 #define UI_ENCODER_CLICK 43 562 #define UI_SHIFT_OUT 17 563 #define UI_SHIFT_LD 42 564 #define UI_SHIFT_CLK 63 567 #define UI_DISPLAY_RS_PIN 16 568 #define UI_DISPLAY_RW_PIN -1 569 #define UI_DISPLAY_ENABLE_PIN 17 570 #define UI_DISPLAY_D4_PIN 23 571 #define UI_DISPLAY_D5_PIN 25 572 #define UI_DISPLAY_D6_PIN 27 573 #define UI_DISPLAY_D7_PIN 29 574 #define UI_ENCODER_A 64 575 #define UI_ENCODER_B 59 576 #define UI_ENCODER_CLICK 63 578 #define UI_SHIFT_OUT 40 579 #define UI_SHIFT_LD 42 580 #define UI_SHIFT_CLK 44 583 #define UI_DELAYPERCHAR 50 584 #define UI_INVERT_MENU_DIRECTION 1 610 for (int8_t i = 1; i <= 8; i++) {
629 #endif // Controller 6 630 #if FEATURE_CONTROLLER == CONTROLLER_RADDS 637 #define UI_HAS_KEYS 1 638 #define UI_HAS_BACK_KEY 1 639 #define UI_DISPLAY_TYPE DISPLAY_4BIT 640 #define UI_DISPLAY_CHARSET 1 641 #define BEEPER_TYPE 1 645 #define BEEPER_PIN 41 646 #define UI_DISPLAY_RS_PIN 42 647 #define UI_DISPLAY_RW_PIN -1 648 #define UI_DISPLAY_ENABLE_PIN 43 649 #define UI_DISPLAY_D0_PIN 44 650 #define UI_DISPLAY_D1_PIN 45 651 #define UI_DISPLAY_D2_PIN 46 652 #define UI_DISPLAY_D3_PIN 47 653 #define UI_DISPLAY_D4_PIN 44 654 #define UI_DISPLAY_D5_PIN 45 655 #define UI_DISPLAY_D6_PIN 46 656 #define UI_DISPLAY_D7_PIN 47 657 #define UI_ENCODER_A 50 658 #define UI_ENCODER_B 52 659 #define UI_ENCODER_CLICK 48 660 #define UI_RESET_PIN -1 661 #define UI_DELAYPERCHAR 50 662 #define UI_INVERT_MENU_DIRECTION 0 663 #define UI_BUTTON_BACK 71 678 #endif // Controller 7 680 #if FEATURE_CONTROLLER == CONTROLLER_PIBOT20X4 || FEATURE_CONTROLLER == CONTROLLER_PIBOT16X2 682 #define UI_HAS_KEYS 1 683 #define UI_HAS_BACK_KEY 1 684 #define UI_DISPLAY_TYPE DISPLAY_4BIT 685 #define UI_DISPLAY_CHARSET 1 686 #define UI_DELAYPERCHAR 50 687 #define UI_INVERT_MENU_DIRECTION 1 688 #define BEEPER_SHORT_SEQUENCE 6,2 // Needs longer beep sequence 689 #define BEEPER_LONG_SEQUENCE 24,8 690 #define BEEPER_TYPE 1 691 #define BEEPER_TYPE_INVERTING 0 693 #if FEATURE_CONTROLLER == CONTROLLER_PIBOT16X2 703 #define BEEPER_PIN 31 704 #define UI_DISPLAY_RS_PIN 45 705 #define UI_DISPLAY_RW_PIN -1 706 #define UI_DISPLAY_ENABLE_PIN 44 707 #define UI_DISPLAY_D0_PIN 43 708 #define UI_DISPLAY_D1_PIN 42 709 #define UI_DISPLAY_D2_PIN 19 710 #define UI_DISPLAY_D3_PIN 18 711 #define UI_DISPLAY_D4_PIN 43 712 #define UI_DISPLAY_D5_PIN 42 713 #define UI_DISPLAY_D6_PIN 19 714 #define UI_DISPLAY_D7_PIN 18 715 #define UI_ENCODER_A 61 716 #define UI_ENCODER_B 62 717 #define UI_ENCODER_CLICK 63 718 #define UI_RESET_PIN 28 719 #define UI_DELAYPERCHAR 50 720 #define UI_BUTTON_OK 49 721 #define UI_BUTTON_NEXT 48 722 #define UI_BUTTON_PREVIOUS 47 723 #define UI_BUTTON_BACK 46 724 #define UI_BUTTON_SD_PRINT 29 727 #if PiBot_V_1_4==true || PiBot_V_1_6==true 729 #define BEEPER_PIN 37 730 #define UI_DISPLAY_RS_PIN 16 731 #define UI_DISPLAY_RW_PIN -1 732 #define UI_DISPLAY_ENABLE_PIN 17 733 #define UI_DISPLAY_D0_PIN 23 734 #define UI_DISPLAY_D1_PIN 25 735 #define UI_DISPLAY_D2_PIN 27 736 #define UI_DISPLAY_D3_PIN 29 737 #define UI_DISPLAY_D4_PIN 23 738 #define UI_DISPLAY_D5_PIN 25 739 #define UI_DISPLAY_D6_PIN 27 740 #define UI_DISPLAY_D7_PIN 29 741 #define UI_ENCODER_A 33 742 #define UI_ENCODER_B 31 743 #define UI_ENCODER_CLICK 35 744 #define UI_RESET_PIN 41 745 #define UI_DELAYPERCHAR 50 746 #define UI_BUTTON_OK 4 747 #define UI_BUTTON_NEXT 6 748 #define UI_BUTTON_PREVIOUS 5 749 #define UI_BUTTON_BACK 11 750 #define UI_BUTTON_SD_PRINT 42 755 #define BEEPER_PIN 16 756 #define UI_DISPLAY_RS_PIN 43 757 #define UI_DISPLAY_RW_PIN -1 758 #define UI_DISPLAY_ENABLE_PIN 42 759 #define UI_DISPLAY_D0_PIN 19 760 #define UI_DISPLAY_D1_PIN 18 761 #define UI_DISPLAY_D2_PIN 38 762 #define UI_DISPLAY_D3_PIN 41 763 #define UI_DISPLAY_D4_PIN 19 764 #define UI_DISPLAY_D5_PIN 18 765 #define UI_DISPLAY_D6_PIN 38 766 #define UI_DISPLAY_D7_PIN 41 768 #define UI_ENCODER_A 37 769 #define UI_ENCODER_B 36 771 #define UI_ENCODER_CLICK 69 773 #define UI_RESET_PIN -1 775 #define UI_DELAYPERCHAR 320 776 #define UI_BUTTON_OK 47 777 #define UI_BUTTON_NEXT 46 778 #define UI_BUTTON_PREVIOUS 45 779 #define UI_BUTTON_BACK 44 781 #define UI_BUTTON_SD_PRINT 70 804 #if FEATURE_CONTROLLER == CONTROLLER_FELIX 805 #define UI_HAS_KEYS 1 806 #define UI_HAS_BACK_KEY 0 807 #define UI_DISPLAY_TYPE DISPLAY_4BIT 808 #define UI_DISPLAY_CHARSET 1 811 #define UI_ENCODER_SPEED 2 813 #define BEEPER_TYPE 0 815 #define BEEPER_PIN -1 816 #define UI_DISPLAY_RS_PIN 16 817 #define UI_DISPLAY_RW_PIN -1 818 #define UI_DISPLAY_ENABLE_PIN 17 819 #define UI_DISPLAY_D0_PIN -1 820 #define UI_DISPLAY_D1_PIN -1 821 #define UI_DISPLAY_D2_PIN -1 822 #define UI_DISPLAY_D3_PIN -1 823 #define UI_DISPLAY_D4_PIN 23 824 #define UI_DISPLAY_D5_PIN 25 825 #define UI_DISPLAY_D6_PIN 27 826 #define UI_DISPLAY_D7_PIN 29 827 #define UI_ENCODER_A 35 828 #define UI_ENCODER_B 37 829 #define UI_ENCODER_CLICK 31 830 #define UI_DELAYPERCHAR 50 831 #define UI_INVERT_MENU_DIRECTION 0 844 #endif // Controller 12 846 #if FEATURE_CONTROLLER == CONTROLLER_RAMBO // SeeMeCNC LCD + Rambo 847 #define UI_HAS_KEYS 1 848 #define UI_HAS_BACK_KEY 0 849 #define UI_DISPLAY_TYPE DISPLAY_4BIT 850 #define UI_DISPLAY_CHARSET 1 853 #define BEEPER_TYPE 1 855 #define BEEPER_PIN 79 856 #define UI_DISPLAY_RS_PIN 70 857 #define UI_DISPLAY_RW_PIN -1 858 #define UI_DISPLAY_ENABLE_PIN 71 859 #define UI_DISPLAY_D0_PIN -1 860 #define UI_DISPLAY_D1_PIN -1 861 #define UI_DISPLAY_D2_PIN -1 862 #define UI_DISPLAY_D3_PIN -1 863 #define UI_DISPLAY_D4_PIN 72 864 #define UI_DISPLAY_D5_PIN 73 865 #define UI_DISPLAY_D6_PIN 74 866 #define UI_DISPLAY_D7_PIN 75 867 #define UI_ENCODER_A 76 868 #define UI_ENCODER_B 77 869 #define UI_ENCODER_CLICK 78 870 #define UI_KILL_PIN 80 871 #define UI_DELAYPERCHAR 50 872 #define UI_INVERT_MENU_DIRECTION 0 887 #endif // Controller 13 889 #if FEATURE_CONTROLLER == CONTROLLER_OPENHARDWARE_LCD2004 892 #define SDCARDDETECT -1 893 #define UI_HAS_KEYS 1 894 #define UI_HAS_BACK_KEY 1 895 #define UI_DISPLAY_TYPE DISPLAY_I2C 896 #define UI_DISPLAY_CHARSET 1 899 #define UI_DISPLAY_I2C_CHIPTYPE 1 900 #define UI_DISPLAY_I2C_ADDRESS 0x40 901 #define UI_DISPLAY_I2C_OUTPUT_PINS 65504 902 #define UI_DISPLAY_I2C_OUTPUT_START_MASK 0 903 #define UI_DISPLAY_I2C_PULLUP 31 904 #define UI_I2C_CLOCKSPEED 400000L 905 #define UI_DISPLAY_RS_PIN _BV(15) 906 #define UI_DISPLAY_RW_PIN _BV(14) 907 #define UI_DISPLAY_ENABLE_PIN _BV(13) 908 #define UI_DISPLAY_D0_PIN _BV(12) 909 #define UI_DISPLAY_D1_PIN _BV(11) 910 #define UI_DISPLAY_D2_PIN _BV(10) 911 #define UI_DISPLAY_D3_PIN _BV(9) 912 #define UI_DISPLAY_D4_PIN _BV(12) 913 #define UI_DISPLAY_D5_PIN _BV(11) 914 #define UI_DISPLAY_D6_PIN _BV(10) 915 #define UI_DISPLAY_D7_PIN _BV(9) 916 #define UI_INVERT_MENU_DIRECTION false 917 #define UI_HAS_I2C_KEYS 918 #define UI_HAS_I2C_ENCODER 0 919 #define UI_I2C_KEY_ADDRESS 0x40 948 #endif // Controller 14 953 #if FEATURE_CONTROLLER == CONTROLLER_SANGUINOLOLU_PANELOLU2 954 #define UI_HAS_KEYS 1 955 #define UI_HAS_BACK_KEY 0 956 #define UI_DISPLAY_TYPE DISPLAY_I2C 957 #define UI_DISPLAY_CHARSET 2 960 #define UI_INVERT_MENU_DIRECTION 0 962 #define UI_DISPLAY_I2C_CHIPTYPE 1 963 #define UI_DISPLAY_I2C_ADDRESS 0x40 964 #define UI_DISPLAY_I2C_OUTPUT_PINS 65528 965 #define UI_DISPLAY_I2C_OUTPUT_START_MASK 0 966 #define UI_DISPLAY_I2C_PULLUP 23 967 #define UI_I2C_CLOCKSPEED 100000L 971 #define BEEPER_TYPE 2 972 #define BEEPER_TYPE_INVERTING 1 973 #define BEEPER_ADDRESS UI_DISPLAY_I2C_ADDRESS 974 #define COMPILE_I2C_DRIVER 976 #define UI_DISPLAY_RS_PIN _BV(15) 977 #define UI_DISPLAY_RW_PIN _BV(14) 978 #define UI_DISPLAY_ENABLE_PIN _BV(13) 979 #define UI_DISPLAY_D0_PIN _BV(12) 980 #define UI_DISPLAY_D1_PIN _BV(11) 981 #define UI_DISPLAY_D2_PIN _BV(10) 982 #define UI_DISPLAY_D3_PIN _BV(9) 983 #define UI_DISPLAY_D4_PIN _BV(12) 984 #define UI_DISPLAY_D5_PIN _BV(11) 985 #define UI_DISPLAY_D6_PIN _BV(10) 986 #define UI_DISPLAY_D7_PIN _BV(9) 988 #define BEEPER_PIN _BV(5) 989 #define UI_I2C_HEATBED_LED _BV(8) 990 #define UI_I2C_HOTEND_LED _BV(7) 991 #define UI_I2C_FAN_LED _BV(6) 1008 #endif // Controller 15 1010 #if FEATURE_CONTROLLER == CONTROLLER_GAMEDUINO2 1011 #define UI_HAS_KEYS 1 1012 #define UI_HAS_BACK_KEY 0 1013 #define UI_DISPLAY_TYPE DISPLAY_GAMEDUINO2 1014 #define UI_DISPLAY_CHARSET 0 1017 #define UI_INVERT_MENU_DIRECTION 0 1019 #define BEEPER_TYPE 0 1020 #define BEEPER_TYPE_INVERTING 0 1022 #define UI_DISPLAY_CS 49 // Pin for SPI select on gameduino 2 - depends on board and choice 1024 #endif // Controller 16 1025 #if FEATURE_CONTROLLER == CONTROLLER_MIREGLI // Miregli 1026 #define UI_HAS_KEYS 1 1027 #define UI_HAS_BACK_KEY 1 1028 #define UI_DISPLAY_CHARSET 1 1031 #define UI_KILL_PIN 76 1032 #define UI_ENCODER_A 80 1033 #define UI_ENCODER_B 73 1034 #define UI_ENCODER_CLICK 63 1035 #define UI_DELAYPERCHAR 50 1037 #define SDCARDDETECT -1 //53 1039 #define LCD_CONTRAST 62 1040 #define UI_DISPLAY_TYPE 14 1041 #define LCD_PIN_BL 15 1042 #define DOGLCD_A0 38 1043 #define DOGLCD_CS 14 1044 #define UI_LCD_WIDTH 128 1045 #define UI_LCD_HEIGHT 64 1046 #define U8GLIB_ST7920 1048 #define UI_INVERT_MENU_DIRECTION false 1051 #define UI_FONT_6X10 //default font 1053 #define UI_FONT_WIDTH 6 1054 #define UI_FONT_HEIGHT 10 1055 #define UI_FONT_SMALL_HEIGHT 7 1056 #define UI_FONT_DEFAULT repetier_6x10 1057 #define UI_FONT_SMALL repetier_5x7 1058 #define UI_FONT_SMALL_WIDTH 5 //smaller font for status display 1062 void ui_init_keys() {
1067 void ui_check_keys(
int &action) {
1072 inline void ui_check_slow_encoder() {}
1073 void ui_check_slow_keys(
int &action) {}
1075 #endif // Controller 17 1076 #if FEATURE_CONTROLLER == CONTROLLER_GATE_3NOVATICA 1077 #define UI_HAS_KEYS 1 1078 #define UI_HAS_BACK_KEY 0 1079 #define UI_DISPLAY_TYPE DISPLAY_4BIT 1080 #define UI_DISPLAY_CHARSET 1 1083 #define BEEPER_TYPE 1 1085 #define BEEPER_PIN -1 1086 #define UI_DISPLAY_RS_PIN 1 1087 #define UI_DISPLAY_RW_PIN -1 1088 #define UI_DISPLAY_ENABLE_PIN 3 1089 #define UI_DISPLAY_D0_PIN -1 1090 #define UI_DISPLAY_D1_PIN -1 1091 #define UI_DISPLAY_D2_PIN -1 1092 #define UI_DISPLAY_D3_PIN -1 1093 #define UI_DISPLAY_D4_PIN 0 1094 #define UI_DISPLAY_D5_PIN 2 1095 #define UI_DISPLAY_D6_PIN 4 1096 #define UI_DISPLAY_D7_PIN 6 1097 #define UI_ENCODER_A 5 1098 #define UI_ENCODER_B 7 1099 #define UI_ENCODER_CLICK 39 1100 #define UI_KILL_PIN -1 1101 #define UI_DELAYPERCHAR 320 // bylo 50 1102 #define UI_INVERT_MENU_DIRECTION 1 // bylo 0 1103 #define USER_KEY1_PIN 36 1104 #define USER_KEY1_ACTION UI_ACTION_LIGHTS_ONOFF 1105 #define USER_KEY2_PIN 40 1106 #define USER_KEY2_ACTION UI_ACTION_PREHEAT_ALL 1107 #define USER_KEY3_PIN 41 1108 #define USER_KEY3_ACTION UI_ACTION_WIZARD_FILAMENTCHANGE 1109 #define USER_KEY4_PIN -1 1110 #define USER_KEY4_ACTION UI_ACTION_DUMMY 1124 #endif // CONTROLLER_GATE_3NOVATICA 1126 #if FEATURE_CONTROLLER == CONTROLLER_SPARKLCD || FEATURE_CONTROLLER == CONTROLLER_SPARKLCD_ADAPTER 1127 #if MOTHERBOARD != 402 && MOTHERBOARD != 412 1128 #error This config only works with RADDS motherboard! 1130 #define UI_DISPLAY_CHARSET 3 1131 #define UI_DISPLAY_TYPE 5 1132 #define U8GLIB_ST7920 // Currently only this display from u8g lib is included. 1133 #define UI_LCD_WIDTH 128 1134 #define UI_LCD_HEIGHT 64 1137 #define UI_FONT_6X10 //default font 1138 #define UI_FONT_WIDTH 6 1139 #define UI_FONT_HEIGHT 10 1140 #define UI_FONT_SMALL_HEIGHT 7 1141 #define UI_FONT_DEFAULT repetier_6x10 1142 #define UI_FONT_SMALL repetier_5x7 1143 #define UI_FONT_SMALL_WIDTH 5 //smaller font for status display 1144 #define UI_DELAYPERCHAR 50 1145 #define UI_HAS_KEYS 1 1146 #define UI_HAS_BACK_KEY 0 1147 #define UI_INVERT_MENU_DIRECTION 0 1148 #define UI_HAS_I2C_ENCODER 0 1149 #undef UI_ENCODER_SPEED 1150 #define UI_ENCODER_SPEED 2 1153 #define UI_COLS (UI_LCD_WIDTH/UI_FONT_SMALL_WIDTH) 1154 #define UI_ROWS (UI_LCD_HEIGHT/UI_FONT_HEIGHT) 1155 #define UI_DISPLAY_D0_PIN -1 1156 #define UI_DISPLAY_D1_PIN -1 1157 #define UI_DISPLAY_D2_PIN -1 1158 #define UI_DISPLAY_D3_PIN -1 1159 #define UI_DISPLAY_D5_PIN -1 1160 #define UI_DISPLAY_D6_PIN -1 1161 #define UI_DISPLAY_D7_PIN -1 1163 #if FEATURE_CONTROLLER == CONTROLLER_SPARKLCD 1164 #if MOTHERBOARD == 412 // STACKER 3d Superboard 1166 #define UI_DISPLAY_RS_PIN 29 // 29 1167 #define UI_DISPLAY_RW_PIN -1 1169 #define UI_DISPLAY_ENABLE_PIN 27 //25 1172 #define UI_DISPLAY_D4_PIN 25 // 27 1173 #define UI_ENCODER_A 33 1174 #define UI_ENCODER_B 35 1175 #define UI_ENCODER_CLICK 37 1176 #else // MOTHERBOARD == 412 1178 #define UI_DISPLAY_RS_PIN 25 1179 #define UI_DISPLAY_RW_PIN -1 1181 #define UI_DISPLAY_ENABLE_PIN 27 1184 #define UI_DISPLAY_D4_PIN 29 1185 #define UI_ENCODER_A 35 1186 #define UI_ENCODER_B 33 1187 #define UI_ENCODER_CLICK 37 1189 #else // FEATURE_CONTROLLER == CONTROLLER_SPARKLCD 1191 #define UI_DISPLAY_RS_PIN 44 1192 #define UI_DISPLAY_RW_PIN -1 1194 #define UI_DISPLAY_ENABLE_PIN 45 1195 #define UI_DISPLAY_D4_PIN 46 1196 #define UI_ENCODER_A 50 1197 #define UI_ENCODER_B 52 1198 #define UI_ENCODER_CLICK 48 1214 #endif // CONTROLLER_sparkLCD 1216 #if FEATURE_CONTROLLER == CONTROLLER_ORCABOTXXLPRO2 1217 #if MOTHERBOARD != 402 1218 #error This config only works with RADDS motherboard! 1220 #define UI_DISPLAY_CHARSET 3 1221 #define UI_DISPLAY_TYPE 5 1222 #define U8GLIB_ST7920 // Currently only this display from u8g lib is included. 1223 #define UI_LCD_WIDTH 128 1224 #define UI_LCD_HEIGHT 64 1227 #define UI_FONT_6X10 //default font 1228 #define UI_FONT_WIDTH 6 1229 #define UI_FONT_HEIGHT 10 1230 #define UI_FONT_SMALL_HEIGHT 7 1231 #define UI_FONT_DEFAULT repetier_6x10 1232 #define UI_FONT_SMALL repetier_5x7 1233 #define UI_FONT_SMALL_WIDTH 5 //smaller font for status display 1235 #define UI_ANIMATION 0 // Animations are too slow 1236 #define UI_DELAYPERCHAR 50 1237 #define UI_HAS_KEYS 1 1238 #define UI_HAS_BACK_KEY 0 1239 #define UI_INVERT_MENU_DIRECTION 0 1240 #define UI_HAS_I2C_ENCODER 0 1241 #define UI_ENCODER_SPEED 1 1252 #define UI_COLS (UI_LCD_WIDTH/UI_FONT_SMALL_WIDTH) 1253 #define UI_ROWS (UI_LCD_HEIGHT/UI_FONT_HEIGHT) 1254 #define UI_DISPLAY_D0_PIN -1 1255 #define UI_DISPLAY_D1_PIN -1 1256 #define UI_DISPLAY_D2_PIN -1 1257 #define UI_DISPLAY_D3_PIN -1 1258 #define UI_DISPLAY_D5_PIN -1 1259 #define UI_DISPLAY_D6_PIN -1 1260 #define UI_DISPLAY_D7_PIN -1 1262 #define UI_DISPLAY_RS_PIN 44 1263 #define UI_DISPLAY_RW_PIN -1 1264 #define UI_DISPLAY_ENABLE_PIN 45 1265 #define UI_DISPLAY_D4_PIN 46 1266 #define UI_ENCODER_A 50 1267 #define UI_ENCODER_B 52 1268 #define UI_ENCODER_CLICK 48 1283 #endif // CONTROLLER_ORCABOTXXLPRO2 1286 #if FEATURE_CONTROLLER == CONTROLLER_VIKI2 1287 #define UI_HAS_KEYS 1 1288 #define UI_HAS_BACK_KEY 0 1289 #define UI_DISPLAY_TYPE DISPLAY_U8G 1291 #define U8GLIB_ST7565_NHD_C2832_HW_SPI 1292 #define UI_LCD_WIDTH 128 1293 #define UI_LCD_HEIGHT 64 1295 #define UI_FONT_6X10 //default font 1296 #define UI_FONT_WIDTH 6 1297 #define UI_FONT_HEIGHT 10 1298 #define UI_FONT_SMALL_HEIGHT 7 1299 #define UI_FONT_DEFAULT repetier_6x10 1300 #define UI_FONT_SMALL repetier_5x7 1301 #define UI_FONT_SMALL_WIDTH 5 //smaller font for status display 1304 #define UI_COLS (UI_LCD_WIDTH/UI_FONT_SMALL_WIDTH) 1305 #define UI_ROWS (UI_LCD_HEIGHT/UI_FONT_HEIGHT) 1306 #define UI_DISPLAY_CHARSET 3 1307 #define UI_INVERT_MENU_DIRECTION 0 1308 #undef UI_ENCODER_SPEED 1309 #define UI_ENCODER_SPEED 2 1310 #define SDCARDDETECT -1 1311 #define UI_DISPLAY_RW_PIN -1 1312 #define UI_ROTATE_180 1314 #define BEEPER_TYPE 1 1320 #if MOTHERBOARD == 33 // RAMPS 1322 #define SDCARDDETECT 49 // sd card detect as shown on drawing 1324 #define BEEPER_PIN 35 1326 #define UI_DISPLAY_D5_PIN 47 1328 #define UI_DISPLAY_RS_PIN 32 1329 #define UI_ENCODER_A 45 1330 #define UI_ENCODER_B 41 1331 #define UI_ENCODER_CLICK 43 1332 #define UI_RESET_PIN -1 1333 #define RED_BLUE_STATUS_LEDS 1334 #define RED_STATUS_LED 39 1335 #define BLUE_STATUS_LED 37 1336 #elif MOTHERBOARD == 34 // Azteeg X3 1338 #define SDCARDDETECT 49 // sd card detect as shown on drawing 1340 #define BEEPER_PIN 33 1342 #define UI_DISPLAY_D5_PIN 31 1344 #define UI_DISPLAY_RS_PIN 32 1345 #define UI_ENCODER_A 22 1346 #define UI_ENCODER_B 7 1347 #define UI_ENCODER_CLICK 12 1348 #define UI_RESET_PIN -1 1349 #define RED_BLUE_STATUS_LEDS 1350 #define RED_STATUS_LED 64 1351 #define BLUE_STATUS_LED 63 1353 #elif MOTHERBOARD == 35 // Azteeg X3 Pro 1357 #define SDCARDDETECT 49 1360 #define BEEPER_PIN 47 1362 #define UI_DISPLAY_D5_PIN 44 1364 #define UI_DISPLAY_RS_PIN 45 1365 #define UI_ENCODER_A 22 1366 #define UI_ENCODER_B 7 1367 #define UI_ENCODER_CLICK 39 1368 #define UI_RESET_PIN -1 1369 #define RED_BLUE_STATUS_LEDS 1370 #define RED_STATUS_LED 32 1371 #define BLUE_STATUS_LED 35 1373 #elif MOTHERBOARD == 301 // RAMBO 1375 #define SDCARDDETECT 72 // sd card detect as shown on drawing 1377 #define BEEPER_PIN 33 1379 #define UI_DISPLAY_D5_PIN 70 1381 #define UI_DISPLAY_RS_PIN 71 1382 #define UI_ENCODER_A 85 1383 #define UI_ENCODER_B 84 1384 #define UI_ENCODER_CLICK 83 1385 #define UI_RESET_PIN -1 1386 #define RED_BLUE_STATUS_LEDS 1387 #define RED_STATUS_LED 22 1388 #define BLUE_STATUS_LED 32 1390 #elif MOTHERBOARD == 9 || MOTHERBOARD == 92 // Printboard 1392 #define SDCARDDETECT 72 1395 #define BEEPER_PIN 32 1397 #define UI_DISPLAY_D5_PIN 42 1399 #define UI_DISPLAY_RS_PIN 43 1400 #define UI_ENCODER_A 26 1401 #define UI_ENCODER_B 27 1402 #define UI_ENCODER_CLICK 47 1403 #define UI_RESET_PIN -1 1404 #define RED_BLUE_STATUS_LEDS 1405 #define RED_STATUS_LED 12 1406 #define BLUE_STATUS_LED 10 1408 #elif MOTHERBOARD == 402 // RADDS 1411 #define SDCARDDETECT 14 // sd card detect as shown on drawing 1427 #define BEEPER_PIN 41 1429 #undef U8GLIB_ST7565_NHD_C2832_HW_SPI 1430 #define U8GLIB_ST7565_NHD_C2832_SW_SPI 1432 #define UI_DISPLAY_ENABLE_PIN 31 1435 #define UI_DISPLAY_D4_PIN 33 //44 1437 #define UI_DISPLAY_D5_PIN 42 1439 #define UI_DISPLAY_RS_PIN 35 //10 1440 #define UI_ENCODER_A 50 1441 #define UI_ENCODER_B 52 1442 #define UI_ENCODER_CLICK 48 1443 #define UI_RESET_PIN -1 1444 #define RED_BLUE_STATUS_LEDS 1446 #define RED_STATUS_LED 6 1448 #define BLUE_STATUS_LED 5 1451 #error No predefined Viki 2 mapping for your board available 1458 #if UI_RESET_PIN > -1 1465 #if UI_RESET_PIN > -1 1472 #endif // Controller VIKI 2 1474 #if FEATURE_CONTROLLER == CONTROLLER_AZSMZ_12864 1475 #define UI_HAS_KEYS 1 1476 #define UI_HAS_BACK_KEY 0 1477 #define UI_DISPLAY_TYPE DISPLAY_U8G 1480 #define UI_LCD_WIDTH 128 1481 #define UI_LCD_HEIGHT 64 1483 #define UI_FONT_6X10 //default font 1484 #define UI_FONT_WIDTH 6 1485 #define UI_FONT_HEIGHT 10 1486 #define UI_FONT_SMALL_HEIGHT 7 1487 #define UI_FONT_DEFAULT repetier_6x10 1488 #define UI_FONT_SMALL repetier_5x7 1489 #define UI_FONT_SMALL_WIDTH 5 //smaller font for status display 1491 #define UI_ANIMATION 0 // Animations are too slow 1494 #define UI_COLS (UI_LCD_WIDTH/UI_FONT_SMALL_WIDTH) 1495 #define UI_ROWS (UI_LCD_HEIGHT/UI_FONT_HEIGHT) 1496 #define UI_DISPLAY_CHARSET 3 1497 #define UI_INVERT_MENU_DIRECTION 0 1498 #undef UI_ENCODER_SPEED 1499 #define UI_ENCODER_SPEED 2 1502 #define UI_ROTATE_180 1504 #define BEEPER_TYPE 1 1510 #if MOTHERBOARD == 408 || MOTHERBOARD == 413 // SMART RAMPS 1513 #define SDCARDDETECT 49 // sd card detect as shown on drawing 1516 #define BEEPER_PIN 66 1518 #undef U8GLIB_ST7565_NHD_C2832_HW_SPI 1519 #define U8GLIB_ST7565_NHD_C2832_SW_SPI 1520 #define LCD_CONTRAST 62 1522 #define UI_DISPLAY_ENABLE_PIN 51 1524 #define UI_DISPLAY_D4_PIN 52 //44 1526 #define UI_DISPLAY_D5_PIN 59 1528 #define UI_DISPLAY_RS_PIN 44 //10 1529 #define UI_ENCODER_A 58 1530 #define UI_ENCODER_B 40 1531 #define UI_ENCODER_CLICK 67 1532 #define UI_RESET_PIN 42 1534 #error No predefined AZSMZ_12864 mapping for your board available 1541 #if UI_RESET_PIN > -1 1548 #if UI_RESET_PIN > -1 1555 #endif // Controller AZSMZ_12864 1558 #if FEATURE_CONTROLLER == CONTROLLER_LCD_MP_PHARAOH_DUE 1559 #define UI_DISPLAY_TYPE 1 1562 #define UI_HAS_KEYS 1 1563 #define UI_HAS_BACK_KEY 0 1564 #define UI_INVERT_MENU_DIRECTION 1 1565 #define UI_DISPLAY_CHARSET 1 1566 #define UI_DISPLAY_RS_PIN 42 // PINK.1, 88, D_RS 1567 #define UI_DISPLAY_RW_PIN -1 1568 #define UI_DISPLAY_ENABLE_PIN 43 // PINK.3, 86, D_E 1569 #define UI_DISPLAY_D0_PIN 44 // PINF.5, 92, D_D4 1570 #define UI_DISPLAY_D1_PIN 45 // PINK.2, 87, D_D5 1571 #define UI_DISPLAY_D2_PIN 46 // PINL.5, 40, D_D6 1572 #define UI_DISPLAY_D3_PIN 47 // PINK.4, 85, D_D7 1573 #define UI_DISPLAY_D4_PIN 44 // PINF.5, 92, D_D4 1574 #define UI_DISPLAY_D5_PIN 45 // PINK.2, 87, D_D5 1575 #define UI_DISPLAY_D6_PIN 46 // PINL.5, 40, D_D6 1576 #define UI_DISPLAY_D7_PIN 47 // PINK.4, 85, D_D7 1577 #define UI_DELAYPERCHAR 50 1600 #endif // CONTROLLER_LCD_MP_PHARAOH_DUE 1602 #if FEATURE_CONTROLLER == CONTROLLER_ZONESTAR 1605 #if !defined(ADC_KEYPAD_PIN) || (ADC_KEYPAD_PIN < 0) 1606 #error CONTROLLER_ZONESTAR requres ADC_KEYPAD_PIN = 1 defined in Configuration.h 1620 #undef UI_DISPLAY_TYPE 1621 #define UI_DISPLAY_TYPE DISPLAY_4BIT 1623 #if MOTHERBOARD == 39 // ZRIB 1624 #define BEEPER_TYPE 1 1625 #define UI_DISPLAY_RS_PIN 16 1626 #define UI_DISPLAY_RW_PIN -1 1627 #define UI_DISPLAY_ENABLE_PIN 17 1628 #define UI_DISPLAY_D4_PIN 23 1629 #define UI_DISPLAY_D5_PIN 25 1630 #define UI_DISPLAY_D6_PIN 27 1631 #define UI_DISPLAY_D7_PIN 29 1632 #define UI_RESET_PIN 41 1634 #elif MOTHERBOARD == 703 // MEGATRONICS 3 1636 #define UI_DISPLAY_RS_PIN 32 1637 #define UI_DISPLAY_RW_PIN -1 1638 #define UI_DISPLAY_ENABLE_PIN 31 1639 #define UI_DISPLAY_D4_PIN 14 1640 #define UI_DISPLAY_D5_PIN 30 1641 #define UI_DISPLAY_D6_PIN 39 1642 #define UI_DISPLAY_D7_PIN 15 1643 #define BEEPER_TYPE 1 1645 #elif MOTHERBOARD == 63 // Melzi 1647 #define UI_DISPLAY_ENABLE_PIN 29 1648 #define UI_DISPLAY_RS_PIN 28 1649 #define UI_DISPLAY_RW_PIN -1 1650 #define UI_DISPLAY_D4_PIN 10 1651 #define UI_DISPLAY_D5_PIN 11 1652 #define UI_DISPLAY_D6_PIN 16 1653 #define UI_DISPLAY_D7_PIN 17 1655 #error Unknown display - board combination. Please add your pin mapping in DisplayList.h 1658 #define UI_DISPLAY_CHARSET 1 1663 #define UI_HAS_KEYS 1 1664 #define UI_HAS_BACK_KEY 1 1665 #define UI_DELAYPERCHAR 50 1666 #define UI_INVERT_MENU_DIRECTION 1 1671 #ifndef ADC_KEYPAD_CENTER_ACTION 1672 #define ADC_KEYPAD_CENTER_ACTION UI_ACTION_OK 1692 const uint8_t numOfKeys =
sizeof(keys) /
sizeof(keys[0]);
1697 for (int8_t i = 0; i < numOfKeys; ++i) {
1698 if ((adc > keys[i].min) && (adc < keys[i].max)) {
1699 action = keys[i].action;
1710 #endif // CONTROLLER_ZONESTAR 1712 #ifndef UI_HAS_I2C_ENCODER 1713 #define UI_HAS_I2C_ENCODER 0 1717 #if FEATURE_CONTROLLER != NO_CONTROLLER 1720 #define UI_LINE_OFFSETS {0,0x40,0x10,0x50} // 4x16 1723 #define UI_LINE_OFFSETS {0,0x40,0x14,0x54} // 4x20 with HD44780 1725 #if UI_DISPLAY_TYPE!=DISPLAY_GAMEDUINO2 1726 #error Unknown combination off rows/columns - define UI_LINE_OFFSETS manually. 1728 #define UI_LINE_OFFSETS {} // dummy never used 1732 #define UI_LINE_OFFSETS {0,0x40,0x10,0x50} // 2x16, 2x20, 2x24 1737 #define UI_VERSION_STRING "Repetier " REPETIER_VERSION 1739 #ifdef UI_HAS_I2C_KEYS 1740 #define COMPILE_I2C_DRIVER 1743 #if UI_DISPLAY_TYPE != NO_DISPLAY 1746 #if UI_DISPLAY_TYPE == DISPLAY_I2C 1747 #define COMPILE_I2C_DRIVER 1750 #ifndef UI_TEMP_PRECISION 1752 #define UI_TEMP_PRECISION 1 1754 #define UI_TEMP_PRECISION 0 1758 #define UI_INITIALIZE uid.initialize(); 1759 #define UI_FAST if((counterPeriodical & 3) == 3) {uid.fastAction();} 1760 #define UI_MEDIUM uid.mediumAction(); 1761 #define UI_SLOW(allowMoves) uid.slowAction(allowMoves); 1762 #define UI_STATUS(status) uid.setStatusP(PSTR(status)); 1763 #define UI_STATUS_F(status) uid.setStatusP(status); 1764 #define UI_STATUS_UPD(status) {uid.setStatusP(PSTR(status));uid.refreshPage();} 1765 #define UI_STATUS_UPD_F(status) {uid.setStatusP(status);uid.refreshPage();} 1766 #define UI_STATUS_RAM(status) uid.setStatus(status); 1767 #define UI_STATUS_UPD_RAM(status) {uid.setStatus(status);uid.refreshPage();} 1768 #define UI_ERROR(status) uid.setStatusP(PSTR(status),true); 1769 #define UI_ERROR_P(status) uid.setStatusP(status,true); 1770 #define UI_ERROR_UPD(status) {uid.setStatusP(PSTR(status),true);uid.refreshPage();} 1771 #define UI_ERROR_RAM(status) uid.setStatus(status,true); 1772 #define UI_ERROR_UPD_RAM(status) {uid.setStatus(status,true);uid.refreshPage();} 1774 #define UI_CLEAR_STATUS {uid.statusMsg[0]=0;} 1775 #define UI_RESET_MENU {uid.menuLevel=0;uid.refreshPage();} 1776 #define UI_MESSAGE(menu) {uid.showMessage(menu);} 1777 #define UI_ACTION(ac) {uid.executeAction(ac,true);} 1779 #define UI_INITIALIZE {} 1781 #define UI_MEDIUM {} 1782 #define UI_SLOW(allowMoves) {} 1783 #define UI_STATUS(status) {} 1784 #define UI_STATUS_F(status) {} 1785 #define UI_STATUS_RAM(status) {} 1786 #define UI_STATUS_UPD(status) {} 1787 #define UI_STATUS_UPD_F(status) {} 1788 #define UI_STATUS_UPD_RAM(status) {} 1789 #define UI_CLEAR_STATUS {} 1790 #define UI_ERROR(msg) {} 1791 #define UI_ERROR_P(status) {} 1792 #define UI_ERROR_UPD(status) {} 1793 #define UI_ERROR_RAM(status) {} 1794 #define UI_ERROR_UPD_RAM(status) {} 1795 #define UI_RESET_MENU {} 1796 #define UI_MESSAGE(menu) {} 1797 #define UI_ACTION(ac) 1801 #if BEEPER_TYPE==0 || FEATURE_BEEPER == 0 1802 #define BEEP_SHORT {} 1803 #define BEEP_LONG {} 1805 #define BEEP_SHORT beep(BEEPER_SHORT_SEQUENCE); 1806 #define BEEP_LONG beep(BEEPER_LONG_SEQUENCE); 1810 extern void beep(uint8_t duration, uint8_t count);
1811 #if (defined(USER_KEY1_PIN) && USER_KEY1_PIN > -1 && defined(USER_KEY1_ACTION)) || (defined(USER_KEY2_PIN) && USER_KEY2_PIN > -1 && defined(USER_KEY2_ACTION)) || (defined(USER_KEY3_PIN) && USER_KEY3_PIN > -1 && defined(USER_KEY3_ACTION)) || (defined(USER_KEY4_PIN) && USER_KEY4_PIN > -1 && defined(USER_KEY4_ACTION)) 1812 #define HAS_USER_KEYS 1814 #if defined(USER_KEY1_PIN) && USER_KEY1_PIN > -1 && defined(USER_KEY1_ACTION) 1817 #if defined(USER_KEY2_PIN) && USER_KEY2_PIN > -1 && defined(USER_KEY2_ACTION) 1820 #if defined(USER_KEY3_PIN) && USER_KEY3_PIN > -1 && defined(USER_KEY3_ACTION) 1823 #if defined(USER_KEY4_PIN) && USER_KEY4_PIN > -1 && defined(USER_KEY4_ACTION) #define USER_KEY3_PIN
Definition: DisplayList.h:1107
static void i2cStop(void)
Definition: HAL.cpp:459
#define UI_KEYS_I2C_BUTTON_LOW(pin, action_)
Definition: ui.h:411
#define UI_ACTION_RESET
Definition: ui.h:171
#define USER_KEY2_ACTION
Definition: DisplayList.h:1106
#define UI_SHIFT_OUT
Definition: DisplayList.h:578
#define READ(IO)
Read a pin wrapper.
Definition: fastio.h:46
#define UI_ACTION_HOME_ALL
Definition: ui.h:102
static uint8_t i2cReadNak(void)
Definition: HAL.cpp:506
void uiCheckSlowEncoder()
Definition: gameduino2.h:167
static void ui_check_Ukeys(uint16_t &action)
Definition: DisplayList.h:1813
#define UI_ACTION_X_DOWN
Definition: ui.h:65
void beep(uint8_t duration, uint8_t count)
Definition: ui.cpp:70
#define USER_KEY1_PIN
Definition: DisplayList.h:1103
#define UI_KEYS_INIT_BUTTON_LOW(pin)
Definition: ui.h:365
#define WRITE(IO, v)
Write to a pin wrapper.
Definition: fastio.h:48
#define ANALOG_INPUTS
number of analog input signals. Normally 1 for each temperature sensor
Definition: Repetier.h:546
#define UI_BUTTON_PREVIOUS
Definition: DisplayList.h:748
#define UI_KEYS_CLICKENCODER_LOW_REV(pinA, pinB)
Definition: ui.h:370
#define UI_ACTION_Z_DOWN
Definition: ui.h:69
#define UI_BUTTON_SD_PRINT
Definition: DisplayList.h:750
#define SET_OUTPUT(IO)
set pin as output wrapper
Definition: fastio.h:56
#define UI_KEYS_BUTTON_LOW(pin, action_)
Definition: ui.h:371
#define USER_KEY3_ACTION
Definition: DisplayList.h:1108
#define I2C_READ
Definition: HAL.h:144
#define UI_ACTION_MENU_POSITIONS
Definition: ui.h:282
#define USER_KEY2_PIN
Definition: DisplayList.h:1105
#define UI_BUTTON_NEXT
Definition: DisplayList.h:747
#define USER_KEY4_ACTION
Definition: DisplayList.h:1110
static void i2cWrite(uint8_t data)
Definition: HAL.cpp:475
void uiCheckSlowKeys(int &action)
Definition: gameduino2.h:168
#define UI_ACTION_NEXT
Definition: ui.h:61
#define UI_ACTION_MENU_QUICKSETTINGS
Definition: ui.h:280
#define UI_RESET_PIN
Definition: DisplayList.h:744
#define UI_ACTION_MENU_SDCARD
Definition: ui.h:279
#define UI_ACTION_Z_UP
Definition: ui.h:68
#define USER_KEY1_ACTION
Definition: DisplayList.h:1104
#define UI_BUTTON_BACK
Definition: DisplayList.h:749
static uint8_t i2cReadAck(void)
Definition: HAL.cpp:494
#define X_MIN_PIN
Definition: pins.h:3055
#define UI_DISPLAY_I2C_ADDRESS
Definition: DisplayList.h:963
#define UI_ACTION_BACK
Definition: ui.h:82
void uiCheckKeys(int &action)
Definition: gameduino2.h:166
#define ANALOG_REDUCE_BITS
Definition: HAL.h:135
#define UI_ACTION_KILL
Definition: ui.h:170
#define UI_KEYS_INIT_CLICKENCODER_LOW(pinA, pinB)
Definition: ui.h:364
#define UI_KEYS_CLICKENCODER_LOW(pinA, pinB)
Definition: ui.h:369
#define I2C_WRITE
Definition: HAL.h:146
#define UI_ACTION_Y_DOWN
Definition: ui.h:67
#define UI_ENCODER_A
Definition: DisplayList.h:1266
#define UI_BUTTON_OK
Definition: DisplayList.h:746
#define UI_KILL_PIN
Definition: DisplayList.h:1100
#define UI_SHIFT_LD
Definition: DisplayList.h:579
#define UI_SHIFT_CLK
Definition: DisplayList.h:580
volatile uint osAnalogInputValues[ANALOG_INPUTS]
Definition: Extruder.cpp:45
#define UI_ACTION_Y_UP
Definition: ui.h:66
#define UI_ENCODER_CLICK
Definition: DisplayList.h:1268
#define UI_ACTION_X_UP
Definition: ui.h:64
#define UI_ACTION_OK
Definition: ui.h:83
void uiInitKeys()
Definition: gameduino2.h:165
#define UI_ENCODER_B
Definition: DisplayList.h:1267
#define USER_KEY4_PIN
Definition: DisplayList.h:1109
#define UI_ACTION_EMERGENCY_STOP
Definition: ui.h:86
#define UI_ACTION_SD_PRINT
Definition: ui.h:94
static void i2cStartWait(uint8_t address)
Definition: HAL.cpp:415
#define SET_INPUT(IO)
set pin as input wrapper
Definition: fastio.h:54
#define ADC_KEYPAD_CENTER_ACTION
Definition: DisplayList.h:1672
#define UI_ACTION_PREVIOUS
Definition: ui.h:62